import { post,get } from '../../http/axios'

export default {
    namespaced:true,
    state:{
       hos:{}
    },
    mutations:{
        set_hos(state,val){
            state.hos = val;
        }
    },
    actions:{
        async findHos({commit},params){
            let res = await get('/hospital/pageQuery',params);
            commit('set_hos',res.data)
        },
        async saveHos({commit},params){
            let res = await post('/hospital/saveOrUpdate',params);
            return res;
        }
    }
}